package com.chao.common.util.file;

import com.chao.common.util.reaction.Reaction;

import java.util.Date;


/**
 * 文件资源相关
 * chang
 * 2020-07-28
 */
public class FileUpload implements Reaction {

	/**
	 * 主键
	 */
	private String fileId;

	/**
	 * 附件后缀
	 */
	private String fileType;

	/**
	 * 附件名称
	 */
	private String fileName;

	/**
	 * 文件url
	 */
	private String fileUrl;

	/**
	 * 关联ID
	 */
	private String objectId;

	/**
	 * 关联ID
	 */
	private String objectField;

	/**
	 * 上传用户
	 */
	private String fileUser;

	/**
	 * 附件下载前缀
	 */
	private String filePrefix;

	/**
	 * 创建时间
	 */
	private Date ctime;

	public String getFilePrefix() {
		return null == filePrefix?"":filePrefix;
	}


	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	public String getObjectField() {
		return objectField;
	}

	public void setObjectField(String objectField) {
		this.objectField = objectField;
	}

	public String getFileUser() {
		return fileUser;
	}

	public void setFileUser(String fileUser) {
		this.fileUser = fileUser;
	}

	public void setFilePrefix(String filePrefix) {
		this.filePrefix = filePrefix;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}
}